﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;

namespace NSATBPortal
{
    public partial class TestDataSetHome : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
            }

        }
        protected void DefTestDataSetGrid_RowEditing(object sender, GridViewEditEventArgs e)
        {
            int iIndex = e.NewEditIndex;

            string sRecID = DefTestDataSetGrid.DataKeys[iIndex].Value.ToString();

            Response.Redirect("TestDataSetDetails.aspx?ID=" + sRecID.Trim());
        }

        protected void DefTestDataSetGrid_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            int iIndex = e.RowIndex;
            string sRecID = DefTestDataSetGrid.DataKeys[iIndex].Value.ToString();



        }

        protected void DefTestDataSetGrid_Init(object sender, EventArgs e)
        {
            
            ATBSchemaDB objATBDB = new ATBSchemaDB();
            DataTable dtResults = objATBDB.GetTestDataSetList();
            objATBDB.Dispose();

            DefTestDataSetGrid.DataSource = dtResults;
            DefTestDataSetGrid.DataBind();
        }
    }
}